import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()

export const reciveMaterialsManageRouter = {
  name: 'reciveMaterialsManage',
  component: () => import('@/components/MenuPage/MenuPage.vue'),
  path: 'reciveMaterialsManage',
  meta: {
    title: t('router.purchase.reciveMaterialsManage'),
    alwaysShow: true
  },
  children: [
    {
      path: '/MaterialReceiptNotice',
      component: () =>
        import('@/views/SupplyChain/Purchase/ReciveMaterialsManage/MaterialReceiptNotice.vue'),
      name: 'MaterialReceiptNotice',
      meta: {
        title: t('router.purchase.materialReceiptNotice')
      }
    },
    {
      path: '/MaterialReceiptNoticeList',
      component: () =>
        import('@/views/SupplyChain/Purchase/ReciveMaterialsManage/MaterialReceiptNoticeList.vue'),
      name: 'MaterialReceiptNoticeList',
      meta: {
        title: t('router.purchase.materialReceiptNoticeList')
      }
    },
    {
      path: '/PurchaseInventory',
      component: () =>
        import('@/views/SupplyChain/Purchase/ReciveMaterialsManage/PurchaseInventory.vue'),
      name: 'PurchaseInventory',
      meta: {
        title: t('router.purchase.purchaseInventory')
      }
    },
    {
      path: '/PurchaseInventoryList',
      component: () =>
        import('@/views/SupplyChain/Purchase/ReciveMaterialsManage/PurchaseInventoryList.vue'),
      name: 'PurchaseInventoryList',
      meta: {
        title: t('router.purchase.purchaseInventoryList')
      }
    }
  ]
}
